<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./lib/layui/css/layui.css">
    <link rel="stylesheet" href="./lib/cropper/cropper.css">
    <link rel="stylesheet" href="./css/ggtx.css">
    <style>
      html, body{
          position: relative;
        width: 100%;
        height: 100%;
        
      }
      .container{
      position:absolute;
        width: 100%;
        height: 100%;
        background: url(./images/bgi.jpg) -30%10%;
        /* 背景不平铺 */
        /* background-repeat: no-repeat; */
        /* 背景缩放 充满整个盒子 */
        background-size:cover;
      }</style>
</head>

<body>
  <div id="jsi-cherry-container" class="container"></div>
    <div class="layui-card">
        <div class="layui-card-header">更换头像
        </div>
        <div class="layui-card-body">
           <!-- 第一行的图片裁剪和预览区域 -->
  <div class="row1">
    <!-- 图片裁剪区域 -->
    <div class="cropper-box">
      <!-- 这个 img 标签很重要，将来会把它初始化为裁剪区域 -->
      <img id="image" src="./images/bgi.jpg" />
    </div>
    <!-- 图片的预览区域 -->
    <div class="preview-box">
      <div>
        <!-- 宽高为 100px 的预览区域 -->
        <div class="img-preview w100"></div>
        <p class="size">100 x 100</p>
      </div>
      <div>
        <!-- 宽高为 50px 的预览区域 -->
        <div class="img-preview w50"></div>
        <p class="size">50 x 50</p>
      </div>
    </div>
  </div>

  <!-- 第二行的按钮区域 -->
  <div class="row2">
    <input type="file" id="file" style="display: none;">
<button type="button" class="layui-btn" id="chooseFile">选择头像</button>
<button type="button" class="layui-btn layui-btn-danger" id="sure">确认修改</button>
  </div>
        </div>
    </div>

   
    <script src="./lib/jquery.js"></script>
    <script src="./js/1.js"></script>
    <script src="./lib/cropper/Cropper.js"></script>
    <script src="./lib/cropper/jquery-cropper.js"></script>
    <script src="./lib/layui/layui.all.js"></script>
    
    <script src="./js/base.js"></script>
    <script src="./js/ggtx.js"></script>
</body>

</html>